package com.yunxin.core.application.dto.popup;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author zero°
 * @since 2023-12-11
 */
@Data
@Schema(description = "产品下拉框对象")
public class ProductOptionsDTO implements Serializable {

    /**
     * 弹窗id
     */
    @Schema(description = "弹窗id")
    private Long id;

    /**
     * 产品列表
     */
    @Schema(description = "产品列表")
    private List<Product> productList;

    @Data
    public static class Product implements Serializable {
        /**
         * 产品id
         */
        @Schema(description = "产品id")
        private Long productId;

        /**
         * 产品名称
         */
        @Schema(description = "产品名称")
        private String productName;
    }
}
